package com.tuanzi.loan.business.service.statistics.impl;

import com.tuanzi.loan.business.repository.statistics.BigClueStatChannelRepository;
import com.tuanzi.loan.business.service.statistics.BigClueStatChannelService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.BigClueStatChannelsearchRequest;
import com.tuanzi.loan.vo.response.statistics.BigClueStatChannelsearchResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class BigClueStatChannelServiceImpl implements BigClueStatChannelService{
    @Autowired
    private BigClueStatChannelRepository repository;
    @Override
    public Page<BigClueStatChannelsearchResponse> list(PageSearcher<BigClueStatChannelsearchRequest> pageSearcher) {
        return repository.list(pageSearcher.getSearchCondition(),pageSearcher.getPageable());
    }

    @Override
    public List<String> returnCfrom() {
        return repository.returnCfrom();
    }
}
